package br.ufrn.sigtcc.model.entidades;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name="PROFESSOR")
@DiscriminatorValue("professor")
public class Professor extends Pessoa implements Serializable {

	@Column(unique = true, nullable = false, length = 7)
	private String matriculaSiape;
	
	@ManyToOne
	@JoinColumn(name="centro_fk", nullable = false)
	private Centro centro;
	
	@OneToMany
	@JoinColumn(name="not_fk")
	private List<Noticia> noticias;
	
	@Transient
	private static final long serialVersionUID = 1L;

	public Professor() {
		super();
	}

	public String getMatriculaSiape() {
		return matriculaSiape;
	}

	public void setMatriculaSiape(String matriculaSiape) {
		this.matriculaSiape = matriculaSiape;
	}

	public Centro getCentro() {
		return centro;
	}

	public void setCentro(Centro centro) {
		this.centro = centro;
	}

	public List<Noticia> getNoticias() {
		return noticias;
	}

	public void setNoticias(List<Noticia> noticias) {
		this.noticias = noticias;
	}
	
	

}
